home *** CD-ROM | disk | FTP | other *** search
/ Aminet 28 / Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso / Aminet / dev / misc / gms_colours.lha / Colours / colours_data.c next >
Encoding:
C/C++ Source or Header  |  1998-09-11  |  1.9 KB  |  57 lines

  1. /* Module Header
  2. ** -------------
  3. ** This object file must be linked right at the start of the output file.
  4. ** It is very important that the "struct ModHeader" part stays at the top,
  5. ** or the module will not work.
  6. */
  7.  
  8. #define DPKNOBASE 1
  9.  
  10. #include <proto/dpkernel.h>
  11.  
  12. #define COLMOD_VERSION  1
  13. #define COLMOD_REVISION 0
  14.  
  15. extern struct Function JumpTableV1;
  16. extern BYTE ModAuthor[];
  17. extern BYTE ModDate[];
  18. extern BYTE ModCopyright[];
  19. extern BYTE ModName[];
  20.  
  21. LIBFUNC LONG CMDInit(mreg(__a0) struct Module *, mreg(__a1) APTR DPKBase,
  22.                mreg(__a2) struct GVBase *, mreg(__d0) LONG dpkVersion,
  23.                mreg(__d1) LONG dpkRevision);
  24. LIBFUNC void CMDClose(mreg(__a0) struct Module *);
  25. LIBFUNC LONG CMDExpunge(void);
  26. LIBFUNC LONG CMDOpen(mreg(__a0) struct Module *);
  27.  
  28. struct ModHeader ModHeader = {
  29.   MODULE_HEADER_V1, /* Version of this structure */
  30.   CMDInit,          /* Init() */
  31.   CMDClose,         /* Close() */
  32.   CMDExpunge,       /* Expunge() */
  33.   JMP_LVO,          /* Type of jump table to be generated for our own use */
  34.   0,                /* Open Count */
  35.   ModAuthor,        /* Author that wrote the module */
  36.   &JumpTableV1,     /* Pointer to function list */
  37.   CPU_68000,        /* The type of CPU that this module is compiled for */
  38.   COLMOD_VERSION,   /* Version of this module */
  39.   COLMOD_REVISION,  /* Revision of this module */
  40.   DPKVersion,       /* Required DPK Version */
  41.   DPKRevision,      /* Required DPK Revision */
  42.   CMDOpen,          /* Open() */
  43.   0,                /* Generated function base for our module */
  44.   ModCopyright,     /* Copyright and Company information */
  45.   ModDate,          /* The date of module compilation */
  46.   ModName,          /* The name of this module */
  47.   JMP_LVO,          /* The dpkernel jump table that we want */
  48.   0                 /* Reserved */
  49. };
  50.  
  51. struct DPKBase   *DPKBase;
  52. struct GVBase    *GVBase;
  53. struct ModPublic *Public;
  54. struct Module    *BlitterMod;
  55. struct BLTBase   *BLTBase = NULL;
  56.  
  57.